<!-- BEGIN: center-->
<script language="JavaScript">
	function doFeedback(){
		var frm = document.frmFeedback;
		if(frm.project_id.value == '0'){
			alert('Please choose a project!');
			frm.project_id.focus();
			return false;
		}
		if(frm.feedback_content.value == ''){
			alert('Please enter feedback description!');
			frm.feedback_content.focus();
			return false;
		}
		frm.submit();
	}
	function doRemoveTask(id){
		if(confirm('Are you sure you want to remove this task?') == true){
			var frm = document.frmRemoveTask;
			frm.taskId.value = id;
			frm.submit();
		}
	}
</script>
<div class="row">
	<div class="elevencol block-title">
		Create Feedback
	</div>
	<div class="elevencol">
		<form method="post" action="" name="frmFeedback" enctype="multipart/form-data">
		<input type="hidden" name="frmAct" value="doFeedback" />
		<input type="hidden" name="frmFeedbackId" value="{FeedbackId}" />
		<table border="0" cellspacing="5" cellpadding="5" width="100%">
			<tr>
				<td width="120">Project:</td>
				<td>
					<select name="project_id">
						<option value="0">choose project</option>
						<!-- BEGIN: listSelectProject -->
						<option value="{listSelectProject.project_id}" {listSelectProject.project_selected}>{listSelectProject.project_name}</option>
						<!-- END: listSelectProject -->
					</select>
				</td>
			</tr>
			<tr>
				<td>Feedback Name:</td>
				<td><input type="text" value="{editFeedbackName}" name="feedback_name" size="60" /></td>
			</tr>
			<tr>
				<td>Attach File:</td>
				<td><input type="file" value="" name="filedata" /> {editFeedbackFileName}</td>
			</tr>
			<tr>
				<td>Feedback Description:</td>
				<td><textarea name="feedback_content" cols="50" rows="6">{editFeedbackContent}</textarea></td>
			</tr>
			{feedbackStatus}
			<tr>
				<td>&nbsp;</td>
				<td><input type="button" value="Save" name="Save" onclick="doFeedback();" /></td>
			</tr>
		</table>
		</form>
	</div>
	<!-- BEGIN: ListProjectWithTask -->
	<div class="elevencol block-title">
		{ListProjectWithTask.project_name}
	</div>
	<div class="elevencol" style="padding-top: 10px;">
		<ul class="list-project-task">
			<!-- BEGIN: ListTasks -->
			<li>{ListTasks.edit_bttn}{ListTasks.del_bttn}#{ListTasks.iCountTask}&nbsp;&nbsp;<span id="">{ListTasks.feedback_name}</span> ({ListTasks.member_displayname}) ({ListTasks.feedback_status}) {ListTasks.feedback_attached_file}</li>
			<li style="margin-bottom:10px;">
				{ListTasks.feedback_content}
			</li>
			<!-- END: ListTasks -->
		</ul>
	</div>
	<!-- END: ListProjectWithTask -->
	<form action="" method="post" name="frmRemoveTask"><input type="hidden" name="taskId" value="" /><input type="hidden" name="projectId" value="{projectId}" /></form>
</div>
<!-- END: center-->